﻿body {
    font-family: "微软雅黑";
}

.sender {
    clear: both;
}

    .sender div:nth-of-type(1) {
        float: left;
    }

    .sender div:nth-of-type(2) {
        background-color: aquamarine;
        float: left;
        margin: 0 20px 10px 15px;
        padding: 10px 10px 10px 0px;
        border-radius: 7px;
    }

    .receiver div:first-child img,
    .sender div:first-child img {
        width: 50px;
        height: 50px;
    }

    .receiver div span img,
    .sender div span img {
        max-width: 250px;
    }

.receiver {
    clear: both;
}

    .receiver div:nth-child(1) {
        float: right;
    }

    .receiver div:nth-of-type(2) {
        float: right;
        background-color: gold;
        margin: 0 10px 10px 20px;
        padding: 10px 0px 10px 10px;
        border-radius: 7px;
    }

.left_triangle {
    height: 0px;
    width: 0px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent aquamarine transparent transparent;
    position: relative;
    left: -16px;
    top: 3px;
}

.right_triangle {
    height: 0px;
    width: 0px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent gold;
    position: relative;
    right: -16px;
    top: 3px;
}
